import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/LoginView/LoginView.vue'
import user from "./modules/user"
import product from "./modules/product"
import article from "./modules/article"
Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    redirect: "/admin/login"
  },
  {
    path: '/admin/login',
    name: 'login',
    component: LoginView
  },
  user,
  product,
  article
]

const router = new VueRouter({
  routes
})

export default router
